﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="PopupSettings.cs" company="Marcin Jastrzebski">
//   Copyright (c) Marcin Jastrzebski (marcin@marcinj.net)
// </copyright>
// <summary>
//   The popup settings.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace PopupLibrary
{
    using Windows.UI;
    using Windows.UI.Xaml.Media;

    /// <summary>The popup settings.</summary>
    public class PopupSettings
    {
        #region Constructors and Destructors

        /// <summary>Initializes a new instance of the <see cref="PopupSettings"/> class.</summary>
        public PopupSettings()
        {
            this.CloseOnOverlayTap = true;
            this.OverlayBackground = new SolidColorBrush(Colors.Black) { Opacity = 0.7 };
        }

        #endregion

        #region Public Properties

        /// <summary>Gets or sets a value indicating whether the popup will close when the overlay is tapped.</summary>
        public bool CloseOnOverlayTap { get; set; }

        /// <summary>Gets or sets the overlay background.</summary>
        public Brush OverlayBackground { get; set; }

        #endregion
    }
}